www.gusucode.com > wxApp PHP版微信小程序CMS系统 v1.0PHP源码程序 > wxApp PHP版微信小程序CMS系统 v1.0/wxAppCMS_v1.0.0/wxAppCMS_v1.0.0/app/weixin/admincp/weixin.event.php
<?php /** * iCMS - i Content Management System * Copyright (c) 2007-2017 iCMSdev.com. All rights reserved. * * @author icmsdev <master@icmsdev.com> * @site https://www.icmsdev.com * @licence https://www.icmsdev.com/LICENSE.html */ defined('iPHP') OR exit('What are you doing?'); admincp::head(); ?> <script type="text/javascript"> $(function(){ $("#<?php echo APP_FORMID;?>").batch(); }); </script> <style> hr { border-bottom:none; margin:4px 0px; } </style> <div class="iCMS-container"> <div class="widget-box"> <div class="widget-title"> <span class="icon"> <i class="fa fa-search"></i> </span> <h5>搜索</h5> </div> <div class="widget-content"> <form action="<?php echo iPHP_SELF ; ?>" method="get" class="form-inline"> <input type="hidden" name="app" value="<?php echo admincp::$APP_NAME;?>" /> <input type="hidden" name="do" value="event" /> <div class="input-prepend"> <span class="add-on">公众号</span> <select name="wx_appid" id="wx_appid" class="chosen-select span4" data-placeholder="== 请选择 =="> <?php echo $this->option(); ?> </select> <script> $(function(){ iCMS.select('wx_appid',"<?php echo $this->wx_appid ; ?>"); }) </script> </div> <div class="input-prepend input-append"><span class="add-on"><i class="fa fa-calendar"></i></span> <input type="text" class="ui-datepicker" name="starttime" value="<?php echo $_GET['starttime'] ; ?>" placeholder="开始时间" /> <span class="add-on">-</span> <input type="text" class="ui-datepicker" name="endtime" value="<?php echo $_GET['endtime'] ; ?>" placeholder="结束时间" /> <span class="add-on"><i class="fa fa-calendar"></i></span> </div> <div class="input-prepend input-append"> <span class="add-on">每页</span> <input type="text" name="perpage" id="perpage" value="<?php echo $maxperpage ; ?>" style="width:36px;"/> <span class="add-on">条记录</span> </div> <div class="input-prepend input-append"> <span class="add-on">关键字</span> <input type="text" name="keywords" class="span2" id="keywords" value="<?php echo $_GET['keywords'] ; ?>" /> <button class="btn btn-primary" type="submit"><i class="fa fa-search"></i> 搜 索</button> </div> </form> </div> </div> <div class="widget-box" id="<?php echo APP_BOXID;?>"> <div class="widget-title"> <span class="icon"> <input type="checkbox" class="checkAll" data-target="#<?php echo APP_BOXID;?>" /> </span> <h5>事件列表</h5> </div> <div class="widget-content nopadding"> <form action="<?php echo APP_FURI; ?>&do=batch" method="post" class="form-inline" id="<?php echo APP_FORMID;?>" target="iPHP_FRAME"> <table class="table table-bordered table-condensed table-hover"> <thead> <tr> <th><i class="fa fa-arrows-v"></i></th> <th style="width:60px;">ID</th> <th style="width:180px;">公众号APPID</th> <th>事件名</th> <th>事件类型</th> <th>事件</th> <th>回复类型</th> <th class="span2">添加时间</th> <th>操作</th> </tr> </thead> <tbody> <?php for($i=0;$i<$_count;$i++){ // $msg = json_decode($rs[$i]['msg'],true); ?> <tr id="id<?php echo $rs[$i]['id'] ; ?>"> <td><input type="checkbox" name="id[]" value="<?php echo $rs[$i]['id'] ; ?>" /></td> <td><?php echo $rs[$i]['id'] ; ?></a></td> <td><a href="<?php echo admincp::uri(array("wx_appid"=>$rs[$i]['appid']),$uriArray); ?>"><?php echo $rs[$i]['appid'] ; ?></a></a></td> <td><?php echo $rs[$i]['name'] ; ?></a></td> <td><?php echo $rs[$i]['eventype'] ; ?></a></td> <td><?php echo $rs[$i]['eventkey'] ; ?></a></td> <td><?php echo $rs[$i]['msgtype'] ; ?></a></td> <td><?php echo get_date($rs[$i]['addtime'],'Y-m-d H:i');?></td> <td style="text-align: right;"> <a href="<?php echo APP_URI; ?>&do=event_add&id=<?php echo $rs[$i]['id'] ; ?>" class="btn btn-small"><i class="fa fa-edit"></i> 编辑</a> <a href="<?php echo APP_URI; ?>&do=event_del&id=<?php echo $rs[$i]['id'] ; ?>" target="iPHP_FRAME" class="del btn btn-small" title='移动此推送到回收站' /><i class="fa fa-trash-o"></i> 删除</a></td> </tr> <?php } ?> </tbody> <tfoot> <tr> <td colspan="9"> <div class="input-prepend input-append mt20 pull-left"> <span class="add-on">全选 <input type="checkbox" class="checkAll checkbox" data-target="#<?php echo APP_BOXID;?>" /> </span> <div class="btn-group dropup" id="iCMS-batch"> <a class="btn dropdown-toggle" data-toggle="dropdown" tabindex="-1"><i class="fa fa-wrench"></i> 批 量 操 作 </a><a class="btn dropdown-toggle" data-toggle="dropdown" tabindex="-1"> <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a data-toggle="batch" data-action="event_dels"><i class="fa fa-trash-o"></i> 删除</a></li> </ul> </div> </div> <div class="pagination pagination-right"><?php echo iUI::$pagenav ; ?></div> </td> </tr> </tfoot> </table> </form> </div> </div> </div> <?php admincp::foot();?>